/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.devs.benchmark.modeling;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "coupledType", propOrder = {"models","connections"})
/**
 *
 * @author Alejandro Moreno
 */
public class CoupledType extends ModelType{

    
    @XmlElement(nillable = true, name = "model")
    protected List<ModelType> models;
    @XmlElement(nillable = true, name = "model")
    protected List<ConnectionType> connections;

    public CoupledType(){}

    public CoupledType(String name){
        super(name);
    }

    public CoupledType(String name, List<InportType> inports, List<OutportType> outports){
        super(name,inports,outports);
        
    }

    



    public List<ConnectionType> getConnections() {
        if (connections == null) {
            connections = new ArrayList<ConnectionType>();
        }
        return this.connections;
    }
    


    public List<ModelType> getModels() {
        if (models == null) {
            models = new ArrayList<ModelType>();
        }
        return this.models;
    }

    
}
